import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 细纱通知单
 * */
export const productionPrdNoticeCreate = (data) => postRequest('/production/prd-notice/create', data);
export const productionPrdNoticeUpdate = (data) => putRequest('/production/prd-notice/update', data);
export const productionPrdNoticeUpdateById = (data) => putRequest('/production/prd-notice/update-by-id', data);
export const productionPrdNoticeDelete = (params) => deleteRequest('/production/prd-notice/delete', params);
export const productionPrdNoticeGet = (params) => getRequest('/production/prd-notice/get', params);
export const productionPrdNoticePage = (params) => getRequest('/production/prd-notice/page', params);

export const productionPrdNoticeExportExcel = (params) => getRequest('/production/prd-notice/export-excel', params);// 导出 Excel

export const productionPrdNoticeComplete = (params) => postRequest('/production/prd-notice/complete', params);
export const productionPrdNoticeClearComplete = (params) => postRequest('/production/prd-notice/clear-complete', params);
export const productionPrdMachinePage = (params) => getRequest('/production/prd-machine/page', params);

export const productionPrdNoticeRelease = (params) => postRequest('/production/prd-notice/release', params);
export const productionPrdNoticeClearRelease = (params) => postRequest('/production/prd-notice/clear-release', params);
export const productionPrdNoticeUpdateRelease = (params) => putRequest('/production/prd-notice/update-release', params);
export const productionPrdNoticeGetStateCount = (params) => getRequest('/production/prd-notice/get-state-count', params);

// 通知单工艺任务
export const spinSpecSheetTaskBatchCreate = (params) => postRequest('/spin/spec-sheet-task/batch-create', params);
export const spinSpecSheetTaskUpdate = (params) => putRequest('/spin/spec-sheet-task/update', params);
export const spinSpecSheetTaskGet = (params) => getRequest('/spin/spec-sheet-task/get', params);
export const spinSpecSheetTaskPage = (params) => getRequest('/spin/spec-sheet-task/page', params);
export const spinSpecSheetTaskSubmitAudit = (params) => postRequest('/spin/spec-sheet-task/submit-audit', params);
export const spinSpecSheetTaskIgnore = (params) => postRequest('/spin/spec-sheet-task/ignore', params);

export const spinSpecSheetTaskBatchUpdate = (params) => putRequest('/spin/spec-sheet-task/batch-update', params);

/**
 * 所有工序的通知单(通用)
 * */
export const productionProcessPrdNoticePage = (params) => postRequest('/production/process/prd-notice/page', params);
export const productionGetTodayPage = (params) => getRequest('/production/process/prd-notice/get-today-list', params);
export const productionProcessPrdNoticeRelease = (params) => postRequest('/production/process/prd-notice/release', params);
export const productionProcessPrdNoticeClearRelease = (params) => postRequest('/production/process/prd-notice/clear-release', params);
export const productionProcessPrdNoticeComplete = (params) => postRequest('/production/process/prd-notice/complete', params);
export const productionProcessPrdNoticeClearComplete = (params) => postRequest('/production/process/prd-notice/clear-complete', params);
export const productionProcessPrdNoticeDelete = (params) => deleteRequest('/production/process/prd-notice/delete', params);
export const productionProcessPrdNoticeGet = (params) => getRequest('/production/process/prd-notice/get', params);
export const productionProcessPrdNoticeCreate = (data) => postRequest('/production/process/prd-notice/create', data);
export const productionProcessPrdNoticeUpdate = (data) => putRequest('/production/process/prd-notice/update', data);
export const productionProcessPrdNoticeUpdateRelease = (params) => putRequest('/production/process/prd-notice/update-release', params);
export const productionProcessPrdNoticeGetStateCount = (params) => getRequest('/production/process/prd-notice/get-state-count', params);

// 批量排产并开台
export const productionPrdNoticeMachineChangeBatchCreateAndOpen = (data) => postRequest('/production/prd-notice-machine-change/batch-create-and-open', data);

export const productionChangeProductRecordPage = (params) => getRequest('/production/change-product-record/page', params);
export const productionChangeProductRecordGet = (params) => getRequest('/production/change-product-record/get', params);
export const productionChangeProductRecordCreate = (params) => postRequest('/production/change-product-record/create', params);
export const productionChangeProductRecordUpdate = (params) => putRequest('/production/change-product-record/update', params);
export const productionChangeProductRecordDelete = (params) => deleteRequest('/production/change-product-record/delete', params);
export const productionChangeProductRecordConfirm = (params) => postRequest('/production/change-product-record/confirm', params);
export const productionChangeProductRecordClearConfirm = (params) => postRequest('/production/change-product-record/clear-confirm', params);
export const productionChangeProductRecordClose = (params) => postRequest('/production/change-product-record/close', params);
export const productionChangeProductRecordClearClose = (params) => postRequest('/production/change-product-record/clear-close', params);
export const productionInventoryProductStockPage = (params) => getRequest('/production/inventory-product-stock/page', params);
